package com.gxa.p2p.pojo;

import lombok.ToString;

import java.io.Serializable;

/**
 * 投资记录表
 */
@ToString
public class InvestRecord {
    private Integer id;
    /**
     * 用户ID
     */
    private Integer userId;
    /**
     * 标的ID
     */
    private Integer bidId;
    /**
     * 投资金额
     */
    private String investAmount;
    /**
     * 利率
     */
    private Float rate;
    /**
     * 利率管理费
     */
    private Double rateManageCost;
    /**
     * 收益模式
     */
    private String incomeMode;
    /**
     * 已收金额
     */
    private Double receivedAmount;
    /**
     * 待收金额
     */
    private Double unreceivedAmount;
    /**
     * 投资渠道
     */
    private String investChannel;

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    /**
     * 统计数量
     */
    private Integer count;
    private UserInfo userInfo;//注册用户信息
    private VerifiedInfo verifiedInfo;//用户认证信息表
    private  BankCard bankCard;//银行卡信息
    private  LoginLog loginLog;//登录记录
    private RechargeRecord rechargeRecord;//交易记录
    private BusinessStatus businessStatus;//状态表

    public InvestRecord(BusinessStatus businessStatus,Integer id, Integer userId, Integer bidId, String investAmount, Float rate, Double rateManageCost, String incomeMode, Double receivedAmount, Double unreceivedAmount, String investChannel, UserInfo userInfo, VerifiedInfo verifiedInfo, BankCard bankCard, LoginLog loginLog, RechargeRecord rechargeRecord,Integer count) {
        this.id = id;
        this.userId = userId;
        this.bidId = bidId;
        this.investAmount = investAmount;
        this.rate = rate;
        this.rateManageCost = rateManageCost;
        this.incomeMode = incomeMode;
        this.receivedAmount = receivedAmount;
        this.unreceivedAmount = unreceivedAmount;
        this.investChannel = investChannel;
        this.userInfo = userInfo;
        this.verifiedInfo = verifiedInfo;
        this.bankCard = bankCard;
        this.loginLog = loginLog;
        this.rechargeRecord = rechargeRecord;
        this.businessStatus=businessStatus;
        this.count = count;
    }

    public BusinessStatus getBusinessStatus() {
        return businessStatus;
    }

    public void setBusinessStatus(BusinessStatus businessStatus) {
        this.businessStatus = businessStatus;
    }

    public UserInfo getUserInfo() {
        return userInfo;
    }

    public void setUserInfo(UserInfo userInfo) {
        this.userInfo = userInfo;
    }

    public VerifiedInfo getVerifiedInfo() {
        return verifiedInfo;
    }

    public void setVerifiedInfo(VerifiedInfo verifiedInfo) {
        this.verifiedInfo = verifiedInfo;
    }

    public BankCard getBankCard() {
        return bankCard;
    }

    public void setBankCard(BankCard bankCard) {
        this.bankCard = bankCard;
    }

    public LoginLog getLoginLog() {
        return loginLog;
    }

    public void setLoginLog(LoginLog loginLog) {
        this.loginLog = loginLog;
    }

    public RechargeRecord getRechargeRecord() {
        return rechargeRecord;
    }

    public void setRechargeRecord(RechargeRecord rechargeRecord) {
        this.rechargeRecord = rechargeRecord;
    }

    public InvestRecord() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getBidId() {
        return bidId;
    }

    public void setBidId(Integer bidId) {
        this.bidId = bidId;
    }

    public String getInvestAmount() {
        return investAmount;
    }

    public void setInvestAmount(String investAmount) {
        this.investAmount = investAmount == null ? null : investAmount.trim();
    }

    public Float getRate() {
        return rate;
    }

    public void setRate(Float rate) {
        this.rate = rate;
    }

    public Double getRateManageCost() {
        return rateManageCost;
    }

    public void setRateManageCost(Double rateManageCost) {
        this.rateManageCost = rateManageCost;
    }

    public String getIncomeMode() {
        return incomeMode;
    }

    public void setIncomeMode(String incomeMode) {
        this.incomeMode = incomeMode == null ? null : incomeMode.trim();
    }

    public Double getReceivedAmount() {
        return receivedAmount;
    }

    public void setReceivedAmount(Double receivedAmount) {
        this.receivedAmount = receivedAmount;
    }

    public Double getUnreceivedAmount() {
        return unreceivedAmount;
    }

    public void setUnreceivedAmount(Double unreceivedAmount) {
        this.unreceivedAmount = unreceivedAmount;
    }

    public String getInvestChannel() {
        return investChannel;
    }

    public void setInvestChannel(String investChannel) {
        this.investChannel = investChannel == null ? null : investChannel.trim();
    }
}